#include "select_sort.h"

using namespace std;

void select_sort(int* array, size_t len)
{
    for ( size_t i = 0; i < len; ++i )
    {
        for ( size_t j = i + 1; j < len; ++j )
        {
            if ( array[i] > array[j] )
            {
                int tmp = array[i];
                array[i] = array[j];
                array[j] = tmp;
            }
        }
    }
}
